package com.dm.yyxr.controller;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dm.yyxr.pojo.dto.SupplyDto;
import com.dm.yyxr.service.SupplylogService;
import com.dm.yyxr.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


@RequestMapping("/supplylog")
@RestController
@CrossOrigin
public class SupplylogController {
    @Autowired
    SupplylogService supplylogService;
    //获取供电表的分页数据并返回成功值
    @GetMapping("/getSupply")
    public Result<Object> getSupply(@RequestParam Integer pageNo){
        //获取指定页的分页数据
        Page<SupplyDto> page = supplylogService.getSupply(pageNo);
        return Result.ok(page);
    }

}
